package com.hjb.service.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hjb.service.ConfigService;
import com.hjb.service.annotation.LogInfo;
import com.hjb.service.annotation.LogType;
import com.hjb.service.domain.Config;

/**
 * 
 * @author <a href="mailto:panxinwen@yingu.com">Pan Xinwen</a>
 * @version 1.0 2017年6月16日 下午3:49:06
 */
@RestController
@RequestMapping("/config/wx/v1/")
public class ConfigController {
	private Logger log = LoggerFactory.getLogger(ConfigController.class);

	@Autowired
	private ConfigService configService;
	@LogInfo(logType = LogType.查询, operationContent = "获取banner页")
	@RequestMapping(value="getBannerPic")
	public List<Config> getBannerPic(HttpServletRequest request){
		return configService.getBannerPic();
	}
	
}
